<?php


namespace App\server;


class PagingServer
{

    public static function paginate($page,$limit)
    {

        if ($limit>100) $limit = 100;
        $offset = ($page -1) *$limit;
        return [$limit,$offset];

    }

}
